package com.ls.fw.web.file.support.handler;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.multipart.MultipartFile;

/**
 * 处理上传文件
 * 
 * @author lisheng
 * @date 2015年10月16日 下午9:25:25
 * @version V1.0
 */
public class DefaultUploadHandler implements UploadHandler {

	@Override
	public boolean isValid(String name, MultipartFile file,
			HttpServletRequest request) throws Exception {
		boolean valid = true;

		return valid;
	}

	@Override
	public boolean save(String name, MultipartFile file,
			HttpServletRequest request) throws Exception {
		boolean result = false;
		String fileName = file.getOriginalFilename();

		return result;
	}

}